<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<include file="public:headtop" />
<link rel="stylesheet" href="__STATIC__/weixin/css/content.css" />

	<style>
		.showhavereal{
			margin-left: 5px;
			font:italic bold 15px arial,sans-serif;
			color: #c00000 ;
			text-shadow: 5px 5px 2px #ff6000 ;
		}
		
		#first {
		    position: fixed;
		    top: 0;
		    left: 0;
		    width: 100%;
		    height: 100%;
		    background: rgba(0, 0, 0, 0.7);
		    display: none;
		    z-index: 20000;
		 }
		 #first img {
		    position: fixed;
		    right: 18px;
		    top: 5px;
		    width: 260px!important;
		    height: 270px!important;
		    z-index: 20001;
		 }		
	</style>
</head>

<body>
	<include file="public:head" />
<script type="text/javascript" src="__STATIC__/weixin/js/jquery.js" charset="utf-8"></script>
<script>
function submitForm(){
	$("#form1").submit(function(e){
		
		});
	
}
</script>

<div data-role="content">
	<div class="banner">
	    <div id="slider" class="slider" style="overflow: hidden; visibility: visible; list-style: none outside none; position: relative;">
	        <ul id="sliderlist" class="sliderlist" style="position: relative; overflow: hidden; transition: left 600ms ease 0s; width: 1800px; left: -1200px;">
	        <volist name='ad' id='vo'>
	            <li style="float: left; display: block; width: 600px;">
	                <span>
	                   <a href="{$vo.url}"> <img title="{$vo.desc}" height="160" width="100%" src="{$vo.content}"></a>
	                </span>
	            </li>
	        </volist>
	        </ul>
	        
	        <div id="pagenavi">
	        <volist name='ad' id='vo' key='k' >
	           <a <if condition='$k eq 1'>class="active"</if> href="javascript:void(0);">{$k}</a>
	        </volist>
	        </div>
	    </div>
	</div>

   <div class="btn_big">
            <ul>
                <li><a href="/weTall/index.php?m=index&a=search&method=new"><div class="newPro"></div><span id="newNav">商品分类</span></a></li>
                <li><a href="/weTall/index.php?m=index&a=search&method=recom"><div class="tuanPro"></div><span id="newNav">热门排行</span></a></li>
                <li><a href="/weTall/index.php?m=index&a=search&method=free"><div class="mailPro"></div><span id="newNav">我的订单</span></a></li>
            </ul>
        </div>
	<script type="text/javascript">
	function favi_action(act){
		if(act == "add"){
			//收藏
			$.post("{:U('index/favi')}", {act: act}, function(data){
				//alert("Data Loaded: "+data.status);
				if(data.status == '0'){
					alert("您还没有登录，请登录！")
					window.location.href=data.url;
				}else if(data.status == '2'){
					alert("该店铺您已收藏！")
				}else{
					alert("收藏成功！")
					window.location.reload();
				}
			},"json");
		}else{
			//取消收藏
			var truthBeTold = window.confirm("您确定要取消收藏吗？"); 
			if (truthBeTold){
				$.post("{:U('index/favi')}", {act: act}, function(data){
					//alert("Data Loaded: "+data.status);
					if(data.status == '0'){
						alert("您还没有登录，请登录！")
						window.location.href=data.url;
					}else if(data.status == '1'){
						alert("取消收藏成功！")
						window.location.reload();
					}else{
						window.location.reload();
					}
				},"json");
			}
		}
		
	}
	
	
	$(function(){
		$("div.module_special .wrap .major ul.list li:last-child").addClass("remove_bottom_line");
	});
	var active=0,
		as=document.getElementById('pagenavi').getElementsByTagName('a');
		
	for(var i=0;i<as.length;i++){
		(function(){
			var j=i;
			as[i].onclick=function(){
				t2.slide(j);
				return false;
			}
		})();
	}
	var t2=new TouchSlider({id:'sliderlist', speed:600, timeout:6000, before:function(index){
			as[active].className='';
			active=index;
			as[active].className='active';
		}});
	</script>

    <div class="content">
      <div class="title_day">每日商品精选</div> 
      <ul class="all_goods">   
         <volist name="news" id="item">
             <li>  
               <div class="sigle_good"  >    
	           <div class="good_pic">
	           	    <a href="__ROOT__/index.php?m=index&a=search&method={$item.name}"><img  src="{$item.img}"></a>
	           </div>
	           
	           </div>
            </li>
	     </volist>
      </ul>
    </div>	
	<include file="public:footer" />
   
    <script>
    
    
    </script>  
</body>
</html>
